﻿using System;
using System.Configuration;
using System.Reflection;

namespace computerMaker
{
    class Program
    {
        static void Main(string[] args)
        {
            String path = ConfigurationManager.AppSettings["computer"];
            Console.WriteLine(path);
            computerBuilder builder = Assembly.Load("computerMaker").CreateInstance(path) as computerBuilder;

            //computerBuilder builder = new laptopComputer();
            computerController computerController = new computerController(builder);
            computer computer= computerController.Construst();
            Console.WriteLine(computer.Cpu + computer.Display+computer.HardDisk+computer.Host+computer.Memory);
            
        }
    }
}
